import request from '../../utils/request.js'
const state = {
	indexData: {}
}
const mutations = {
	SET_INDEXDATA(state, indexData) {
		state.indexData = indexData
	}
}
const actions = {
	async getIndexData({commit}) {
		const result = await request('/getIndexData')
		commit('SET_INDEXDATA', result)
	}
}
const getters = {

}

export default {
	state,
	mutations,
	actions,
	getters,
}
